<script type="text/javascript" src="../Public/Js/group.info.form.js" ></script>
<script>
	function addsubmit() {
		var verify = $('#verify').val();
		if (verify == "" || verify == undefined) {
			ui.error("请输入验证码");
			return ;
		}
		
		if (confirm('解散后无法恢复！确认解散？')) {
			var verify = $('input[name="verify"]').val()
			$.ajax({
	 			type: "POST",
	 			url: U('group/Group/delGroup'),
	 			data:   "gid={$gid}&verify=" + verify,
	 			success: function(msg){
	 				if (msg == '1') {
		 				$('#pop1').hide();
		 				$('#pop2').show();
	 				} else {
						ui.error(msg);
	 				}
	 			} 
			});
		}
	}
</script>
<div style="width:300px; text-align:left" id="pop1">
	<div style="padding:20px;">
		<div class="f14px mb10">解散后无法恢复！确认解散？</div>
      	<div>
      		<input name="verify" type="text" class="text" id="verify" style="width:70px" />
	  		<img src="{:U('home/Public/verify')}" id="verifyimg" class="alM" />
      		<a href="javascript:void(0);" onclick="group_info.change_verify()" alt="换一张">看不清楚，换一个</a>
      	</div>
	</div>
	<div >
		<input name="input" type="button" class="btn_b" value="确 定" onclick="addsubmit();"/>
        <input name="input2" type="button" class="btn_w" value="取 消" onclick="javascript:ui.box.close();"/>
	</div>
</div>

<div style="width:350px; text-align:left; display:none" id="pop2">
	<div style="padding:20px;">
		<div class="f14px mb10 alC">解散群组成功</div>  
	</div>
	<div >
		<input name="input" type="button" class="btn_b" value="确 定" onclick="javascript:parent.window.location.href=U('group/SomeOne/index');ui.box.close();"/>
	</div>
</div>